<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>人的对象:姓,名,年龄,方法()</h3>
	</body>
</html>
<script>
	var person={
		firstname : "迈",
		listname : "凯伦",
		age : 9204700,
		funName : function(){
			//函数里不能直接访问属性,加this关键字
			return this.firstname + this.listname;
		}
	}
	console.log(person.firstname);
	console.log(person.listname);
	console.log(person.age);
	console.log(person.funName());
	
	
	person.address = "长沙";
	person.funName2 = function(){
		return person.firstname + person.lastname+","+person.age;
	}
	console.log(person)
	console.log(person.funName);
</script>